home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
031-040
/
amok39
/
rdt
/
rdt.doc
< prev
next >
Wrap
Text File
|
1993-11-04
|
6KB
|
189 lines
Program:
========
RDT - Replace Default Tool V0.3 4 March 1990
Program purpose:
================
To change, set and delete the Default-Tools in the Project-Icons!
It should be an easy to use and efficient tool for people, who often have
to change the default toolname in the .info file.
Author:
=======
(C) by
Reinhard Geisler KAKTUS@TREFF.ZER Zerberus-Net
Plockhorstweg 20
D-4178 Kevelaer 3 KAKTUS;HCB AmNet
Federal Republic of Germany
Copyright:
==========
Authorized:
The use for private people and private purposes on their own risk.
To copy the program und to pass on the copies, as long you don't
charge more than 5,- US Dollars (Germany: 5,- DM) including the
disk and as long you pass on the following files with it:
RDT
RDT.info
RDT.dok
RDT.doc
RDT.mod
It is authorized to put them all together in an archive!
For transfer through modem you can disregard the source-code (RDT.mod)
and the german documentation (RDT.dok), but in no way this documen-
tation (RDT.doc).
The use of the source-code for all non-commercial people, as long you
leave my name in it.
This program can be put in the following Public-Domain series:
Germany: Amiga Juice, Amok, Computer-Club-Niederrhein e.V. (CCN),
Franz and GetiT.
USA: Fred Fish
You can pass on this program via modem.
P r o h i b i t e d:
Any commercial use of the programs and also to put them together with
any other commercial products without my written permission.
To put this program in a n y Series (Public-Domain or Non-Public-
Domain), e.g. in Germany: Taifun, Schatztruhe, KickStart etc.
This is of course with the exception of the series mentioned in
"Authorized".
To remove my name from the program.
Wanted:
No money, but bug-reports.
If somebody updates it, please sent a copy.
How to start the program:
=========================
from CLI:
RDT [Directory] [<OldToolname> <NewToolname>] Options
from Workbench:
Doubleclick the Icon and you will be asked from the program for
the necessary arguments.
Arguments:
==========
Directory is the name of the directory, where you want to replace the
Default-Toolnames. Directory can be a Devicename too.
All further sub-directories will be scanned.
If you do not enter anything for the directory, the current directory
will be used.
OldToolname is the old Default-Toolname.
If you enter "", all empty Default-Tools will set to the new Default-
Toolname.
If you enter * or #?, all Project-Icons will be set to the new Default-
Toolname. If you have not set the -i option (see below), you will be
asked if you are sure what you are doing. If you are sure, enter
y, Y, j or J. If you anything else, the program will be aborted.
* and #? can just be used by itself and not as joker within the file-
name. They have no meaning in a filename!
NewToolname is the new Default-Toolname.
If you enter "", the old Default-Toolname will be erased and the
Default-Tool is now empty.
Options:
--------
-i = interactive
For each matching old Default-Toolname you will be asked, if
it should be replaced.
On the input prompt you have the following possibilities:
? : Helpline with the options.
q or Q : Aborts the program and replaces nothing.
y, Y, j or J : Sets a marking for replacing.
r or R : Abort further search and replace all marked
files with the new Toolname.
anything else : Old Toolname will not be replaced.
-l = list
All filenames with a Project-Icon will be listed with the
corresponding Default-Toolname.
-s = show
Every found Toolname will only be listed once.
Use this option, if you want to know, which Default-Toolnames
are available.
This option will not work in connection with the options -i and
-l. The program catches this automaticly.
Note:
"" with the option list and show mean, that the Default-Tool in
the Project-Icon is not set.
The options can be on any position in the startup-string. They
just have to start with a - and must be separated from other
arguments by a blank e.g.
-i -l -s and n o t -ils or -i-l-s.
Samples:
========
RDT DF0: c:m2emacs c:DME
All Project-Icons in drive DF0: (including all directories and sub-
directories) with Default-Tool c:m2emacs will be replaced with c:DME.
RDT DH0:Tools Utilities:More c:MuchMore -l
Within directory DH0:Tools and all further subdirectories the Default-
Tool Utilities:More will be replaced with c:MuchMore. The Default-Tools
of all found Project-Icons will be listed.
RDT * :MM -i
The Default-Tools in the current directory and all subdirectories will
be set to :MM, after positivly answering the question.
I m p o r t a n t W a r n i n g !:
====================================
You should set the stack to a minimum of 20000, otherwise the program
may crash.
If you start the program from the CLI with a to small stack, you will
a stack overflow requester.
But, if you start from workbench and the stack is to small, you will
get an address error and after that a G u r u ! This seems to be
an error of my M2Amiga Modula-2 V3.3d compiler. If you know more about
this error, please let me know!
Updates:
========
I am not planning for any updates, with the exception of removing bugs.
Credits:
========
Helmut Dalege for the idea of this program.
Jochen Kupfer and
Peter Fischer as beta testers and for their recommendations and
suggestions.
AMOK All people of the Amiga Modula Club for their great work
for the Amiga Modula-2 community.
Last but not least:
my wife for tolerating my computer hobby.